<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>NavBar</title>
		<link rel="stylesheet" href="css/bootstrap.min.css" />
	</head>

	<body>
		<nav class="navbar navbar-default" role="navigation">
			<div class="container-fluid">
				<div class="nav-header">
					<a class="navbar-brand" href="#">网站标题</a>
				</div>
				<div class="collapse navbar-collapse">
					<ul class="nav navbar-nav" id="mytab">
						<li class="active">
							<a href="#">tab1</a>
						</li>
						<li>
							<a href="#">tab2</a>
						</li>
						<li>
							<a href="#">tab3</a>
						</li>
					</ul>
					<form class="navbar-form navbar-left" role="search">
						<div class="form-group">
							<input type="text" class="form-control" placeholder="搜索"/>
						</div>
						<button type="submit" class="btn btn-default">搜索</button>
					</form>
					<ul class="nav navbar-nav navbar-right">
						<li><a href="#">link</a></li>
						<li><a href="#" class="dropdown-toggle" data-toggle="dropdown">
							dropdown
							<span class="caret"></span>
							</a>
							<ul class="dropdown-menu" role="menu">
								<li><a href="#" class="active">down1</li>
								<li><a href="#">down2</li>
								<li><a href="#">down3</li>
								<li><a href="#">down4</li>
							</ul>
						</li>
					</ul>
				</div>
			</div>
		</nav>
		<nav class="navbar navbar-default navbar-fixed-bottom" role="navigation">
			<ol class="breadcrumb">
				<li><a href="#">主页</a></li>
				<li><a href="#">二级页面</a></li>
				<li><a href="#">三级页面</a></li>
			</ol>
		</nav>

		<script src="js/jquery-2.1.0.js"></script>
		<script src="js/bootstrap.min.js"></script>
		<script>
			$("#mytab a").click(function(e){
				e.preventDefault();
				$(this).tab("show");
			});
		</script>
	</body>

</html>